package com.toman.JavaBean;


import java.io.Serializable;

/**
 * @Author: shaojx
 * @Date: 2018/8/30 13:46
 * @Description:
 */

public class BaseCount  implements Serializable {
    private static final long serialVersionUID = 1L;

    /**完工数量*/
    private Long completedCount;
    /**合格数量*/
    private Long qualifiedCount;
    /**报废数量*/
    private Long scrappedCount;
    /**料废数量*/
    private Long wasteCount;
    /**返工数量*/
    private Long remakeCount;
    /***/
    private Long reuseCount;

    public Long getCompletedCount() {
        return completedCount;
    }

    public void setCompletedCount(Long completedCount) {
        this.completedCount = completedCount;
    }

    public Long getQualifiedCount() {
        return qualifiedCount;
    }

    public void setQualifiedCount(Long qualifiedCount) {
        this.qualifiedCount = qualifiedCount;
    }

    public Long getScrappedCount() {
        return scrappedCount;
    }

    public void setScrappedCount(Long scrappedCount) {
        this.scrappedCount = scrappedCount;
    }

    public Long getWasteCount() {
        return wasteCount;
    }

    public void setWasteCount(Long wasteCount) {
        this.wasteCount = wasteCount;
    }

    public Long getRemakeCount() {
        return remakeCount;
    }

    public void setRemakeCount(Long remakeCount) {
        this.remakeCount = remakeCount;
    }

    public Long getReuseCount() {
        return reuseCount;
    }

    public void setReuseCount(Long reuseCount) {
        this.reuseCount = reuseCount;
    }

    protected void fillAllZero() {
        this.completedCount = 0L;
        this.qualifiedCount = 0L;
        this.scrappedCount = 0L;
        this.wasteCount = 0L;
        this.remakeCount = 0L;
        this.reuseCount = 0L;
    }

    protected void fillNull2Zero() {
        if (this.completedCount == null) {
            this.completedCount = 0L;
        }
        if (this.qualifiedCount == null) {
            this.qualifiedCount = 0L;
        }
        if (this.scrappedCount == null) {
            this.scrappedCount = 0L;
        }
        if (this.wasteCount == null) {
            this.wasteCount = 0L;
        }
        if (this.reuseCount == null) {
            this.reuseCount = 0L;
        }
        if (this.remakeCount == null) {
            this.remakeCount = 0L;
        }
    }
}
